{empty name="data"}
<p style="margin:2rem 0; text-align:center;">暂无订单！！</p>
{else /}
{volist name="data" id="vo"}
<ul class="js-list" dataOrder="{$i}">
    <li class="mt10">
        <div class="weui-form-preview">
            <div class="msui_table msui_tableCom">
                {notempty name="vo.repair_name"}
                <div class="msui_tabCell-img msui_tableImg-circle">
                    {empty name="vo.logo"}
                    <img src="/static/wechat/images/1.jpg">
                    {else /}
                    <img src="{$vo.logo|get_img_url}">
                    {/empty}
                </div>
                {/notempty}
                <div class="msui_tabCell-content action">
                    {switch  name="vo.status"}
                        {case value="1"}
                            <p class="fs085 cl-3333">等待接单中</p>
                        {/case}
                        {case value="9"}
                            <p class="fs085 cl-3333">已取消</p>
                        {/case}
                        {default /}
                            <p class="fs085 cl-3333">{$vo.repair_name}</p>
                            <p class="fs07 cl-9999">{$vo.order_receiving_time|date="Y-m-d H:i", ###}</p>
                    {/switch}
                </div>
                <div class="msui_tabCell-button status">
                    {eq name="vo.after_sale_status" value="0"}
                        <span class="cl-orange fs08">{$vo.status|get_order_server_status}</span>
                    {else /}
                        <span class="cl-orange fs08">{$vo.after_sale_status|get_order_server_after_sale_status}</span>
                    {/eq}
                    </div>
                </div>
            <div class="weui-form-preview__bd">
                {empty name="vo.product"}
                <div class="weui-form-preview__item">
                    <p class="fs085" style="text-align:center;">
                        暂未推送商品
                    </p>
                </div>
                {/empty}
                {notempty name="vo.product"}
                    {volist name="vo.product" id="vp"}
                    <div class="weui-form-preview__item" style="text-align:left;">
                        <span style="float:left;width:86%;">{$vp[0]}</span>
                        <span style="float:right;width:13%;">x {$vp[1]}</span>
                        <!--<span>{$vp[2]}</span>-->
                    </div>
                    {/volist}
                    <div class="weui-form-preview__item">
                        合计：￥{$vo.order_price} &nbsp; &nbsp; &nbsp;
                    </div>
                {/notempty}
                <div class="weui-form-preview__ft">
                    <a class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange" href="{:url('server_deal_goods', [ 'order_id' => $vo['id']])}">
                        查看订单
                    </a>
                    {eq name="vo.after_sale_status" value="0"}
                        {eq name="vo.status" value="1"}
                        <!--// 待付款状态  增加付款按钮
                            <a href="javascript:;" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange cancel_order order_list" data-order-id="{$vo.id}" data-model="order_server">
                                取消订单
                            </a>-->
                        {/eq}
                        {eq name="vo.status" value="11"}
                            <!--// 议价中状态  增加延长议价时间和重新推送按钮
                            <a href="javascript:;" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange order_push_again" data-order-id="{$vo.id}" data-model="order_server">
                                重新推送
                            </a>-->
                        {/eq}
                        {eq name="vo.status" value="2"}
                        <!--// 待付款状态  增加付款按钮
                            <a href="/wechat/pay/order_pay/?id={$vo.id}&model=order_server" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">
                                去付款
                            </a>-->
                        {/eq}
                        {eq name="vo.status" value="3"}
                        <!--// 已支付状态  增加确认按钮-->
                            {eq name='vo.after_sale_status' value="0"}
                            <!--<button type="button" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange affirm_finish order_list" data-order-id="{$vo.id}" data-model="order_server">确认完成</button>-->
                            {else /}
                            <!--<button type="button" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">退款中</button>-->
                            {/eq}
                        {/eq}
                        {eq name="vo.status" value="6"}
                        <!--// 完成状态  增加评价按钮
                            {eq name="vo.is_comment" value="1"}
                            <a href="javascript:;" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">已评价</a>
                            {else /}
                            <a href="{:url('r_comment/index', ['order_id' => $vo['id'], 'type' => '2'])}" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">待评价</a>
                            {/eq}-->
                            {eq name='vo.after_sale_status' value="1"}
                                <!--<a href="javascript:;">售后中</a>-->
                            {/eq}
                        {/eq}
                    {else /}
                        <!--// 有售后产生  显示售后状态-->
                        <!--<a href="{:url('r_austin/order_server_info', ['id' => $vo['oa_id']])}" class="weui-form-preview__btn weui-form-preview__btn_primary cl-orange">查看售后</a>-->
                    {/eq}
                </div>
            </div>
        </div>
    </li>
</ul>
{/volist}
{/empty}